package com.spring.context.support;

import com.spring.beans.BeansException;

/**
 * @Description: This is a sample class.
 * @Author: Simon
 */
public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContext{

    private String[] configLocations;

    @Override
    protected String[] getConfigLocations() {
        return this.configLocations;
    }

    public ClassPathXmlApplicationContext(String configLocation) throws BeansException{
        this(new String[]{configLocation});
    }

    public ClassPathXmlApplicationContext(String[] configLocations)throws BeansException{
        this.configLocations=configLocations;
        refresh();
    }
}
